package com.suli.account.util;

import java.util.Random;

/**
 * @author admin
 * @version 1.0 <br/>
 * <p style="font-family:SimSun;font-weight:bold">时间:<br/>2022/3/19 19:25</p>
 */
public class Captcha {
    public static String getCaptcha(){
        char[] chars = "1029384756aqlpswkodejifrhugtyzmxncbvQWERTYUIOPLKJHGFDSAZXCVBNM".toCharArray();
        StringBuilder stringBuilder=new StringBuilder();
        for(int i=0;i<6;i++){
            char aChar = chars[new Random().nextInt(chars.length)];
            stringBuilder.append(aChar);
        }
        return stringBuilder.toString();
    }
}
